var AjaxUtil = {

    "base":function(url,type,param,okFun,errFun,progressText){
        $.ajax({
            "url":url,
            "data":param,
            "type":type,
            "dataType":"json",
            "success":function(data){
                if(okFun){
                    okFun(data);
                }
            },
            "error":function(err){
                if(errFun){
                    errFun(err);
                }
            },
            "beforeSend":function(xhr){

            },
            "complete":function(){

            }
        })
    },
    "post":function(url,param,okFun,errFun,progressText){
        AjaxUtil.base(url,"post",param,okFun,errFun,progressText);
    },
    "get":function(url,okFun,errFun,progressText){
        AjaxUtil.base(url,"get","",okFun,errFun,progressText);
    },
    "form":function(){

    }
}